$(function(){

    // http://localhost:8080/api/v1
    function init(){
        $.ajax({
            type:'get',
            url:'http://localhost:8080/api/v1/admin/data/info',
            dataType:'json',
            success(res){
                console.log(res);
                $('.spannel>em:eq(0)').text(res.totalArticle)
                $('.spannel>em:eq(1)').text(res.dayArticle)
                $('.spannel>em:eq(2)').text(res.totalComment)
                $('.spannel>em:eq(3)').text(res.dayComment)
            }
        })
    }

    init()
})